Platform Explorer / Nuxeo Platform 11.3

Component org.nuxeo.drive.adapters.hierarchy.permission

Requirements

Resolution Order

166
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.drive.adapters.hierarchy.permission"
  version="1.0">

  <require>org.nuxeo.drive.adapters</require>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="topLevelFolderItemFactory">
    <topLevelFolderItemFactory
      class="org.nuxeo.drive.hierarchy.permission.factory.PermissionTopLevelFactory">
      <parameters>
        <parameter name="folderName">Nuxeo Drive</parameter>
        <parameter name="childrenFactories">userSyncRootParentFactory,sharedSyncRootParentFactory
        </parameter>
      </parameters>
    </topLevelFolderItemFactory>
  </extension>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="fileSystemItemFactory">

    <!-- User synchronization root parent factory (user workspace): order
      before the "permissionSyncRootFactory" that has an order of 40 and before
      the "defaultFileSystemItemFactory" that has an order of 50 -->
    <fileSystemItemFactory name="userSyncRootParentFactory"
      order="30"
      class="org.nuxeo.drive.hierarchy.permission.factory.UserSyncRootParentFactory">
      <parameters>
        <parameter name="folderName">My Docs</parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Synchronization root factory: order before the "defaultFileSystemItemFactory"
      that has an order of 50 -->
    <fileSystemItemFactory name="permissionSyncRootFactory"
      order="40" facet="DriveSynchronized"
      class="org.nuxeo.drive.hierarchy.permission.factory.PermissionSyncRootFactory">
      <parameters>
        <parameter name="requiredPermission">Read</parameter>
        <parameter name="userSyncRootParentFactory">userSyncRootParentFactory</parameter>
        <parameter name="sharedSyncRootParentFactory">
          sharedSyncRootParentFactory
        </parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Shared synchronization root parent factory -->
    <fileSystemItemFactory name="sharedSyncRootParentFactory"
      order="100"
      class="org.nuxeo.drive.hierarchy.permission.factory.SharedSyncRootParentFactory">
      <parameters>
        <parameter name="folderName">Other Docs</parameter>
      </parameters>
    </fileSystemItemFactory>

  </extension>

</component>